package com.fhz.circle.welcome.fragment;

import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import androidx.fragment.app.Fragment;

import com.fhz.circle.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * A simple {@link Fragment} subclass.
 */
public class WelcomeFragmentOne extends Fragment {

    @BindView(R.id.welcomeNightImageOne)
    ImageView welcomeNightImageOne;

    public WelcomeFragmentOne() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_welcome_one, container, false);
        ButterKnife.bind(this, inflate);
        AnimationDrawable background = (AnimationDrawable) welcomeNightImageOne.getBackground();
        background.start();
        return inflate;


    }
}
